# coding:utf-8
from functools import reduce
pro_list = []
with open('students.csv', 'r', encoding='gbk') as r:
    proson_list = r.readlines()
    for proson in proson_list[1:]:
        pro_list.append(proson.strip().split(','))

print('学生的平均年龄{}'.format(reduce(lambda x, y: x+int(y[2]), pro_list, 0)/len(pro_list)))
print('学生的平均身高{}'.format(reduce(lambda x, y: x+int(y[3]), pro_list, 0)/len(pro_list)))
print('年龄大于10岁的学生有{}'.format(list(map(lambda x: x[0], list(filter(lambda x: int(x[2]) > 10, pro_list))))))
